home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / grafica / amhelios / rad_tmp.cpp < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  76 lines

  1. ////////////////////////////////////////////////////////////
  2. //
  3. //  RAD_TMP.H - Dummy Radiosity Equation Solver Base Class
  4. //
  5. //  Version:    1.03A
  6. //
  7. //  History:    94/08/23 - Version 1.00A release.
  8. //              94/09/24 - Added GetElapsedTime function.
  9. //              94/11/26 - Added Solve function.
  10. //              94/12/16 - Version 1.01A release.
  11. //              95/02/05 - Version 1.02A release.
  12. //              95/07/21 - Version 1.02B release.
  13. //              96/02/14 - Version 1.02C release.
  14. //              96/04/01 - Version 1.03A release.
  15. //
  16. //  Compilers:  Microsoft Visual C/C++ Professional V1.5
  17. //              Borland C++ Version 4.5
  18. //
  19. //  Author:     Ian Ashdown, P.Eng.
  20. //              byHeart Software Limited
  21. //              620 Ballantree Road
  22. //              West Vancouver, B.C.
  23. //              Canada V7S 1W3
  24. //              Tel. (604) 922-6148
  25. //              Fax. (604) 987-7621
  26. //
  27. //  Copyright 1994-1996 byHeart Software Limited
  28. //
  29. //  The following source code has been derived from:
  30. //
  31. //    Ashdown, I. 1994. Radiosity: A Programmer's
  32. //    Perspective. New York, NY: John Wiley & Sons.
  33. //
  34. //  It may be freely copied, redistributed, and/or modified
  35. //  for personal use ONLY, as long as the copyright notice
  36. //  is included with all source code files.
  37. //
  38. ////////////////////////////////////////////////////////////
  39.  
  40. // NOTE: This file provides TEMPORARY function stubs for the
  41. //       RadEqnSolve class.
  42.  
  43. #include "rad_eqn.h"
  44.  
  45. char *RadEqnSolve::GetElapsedTime() { return "0:00:00"; }
  46. void RadEqnSolve::CalcAmbient() { }
  47. void RadEqnSolve::CalcInterReflect() { }
  48. void RadEqnSolve::InitExitance() { }
  49. void RadEqnSolve::UpdateUnsentStats() { }
  50.  
  51. // Shade vertex exitances
  52. void RadEqnSolve::Shade( Environ *penv )
  53. {
  54.   Instance *pinst;
  55.   Vertex3 *pvert;
  56.  
  57.   // Walk the instance list
  58.   pinst = penv->GetInstPtr();
  59.   while (pinst != NULL)
  60.   {
  61.     // Walk the vertex list
  62.     pvert = pinst->GetVertPtr();
  63.     while (pvert != NULL)
  64.     {
  65.       // Set vertex exitance to parent surface reflectance
  66.       pvert->SetExitance(pvert->GetElemListPtr()->
  67.           GetElemPtr()->GetParentPtr()->GetParentPtr()->
  68.           GetReflectance());
  69.  
  70.       pvert = pvert->GetNext();
  71.     }
  72.     pinst = pinst->GetNext();
  73.   }
  74. }
  75.  
  76.